<?php
include("../includes/DBFunctions.php");
include("../includes/getCredentials.php");

function restoreDefaultFunctor() {
	$db = new DBFunctions;
	$gc = new GetCredentials;
	$uid = $gc->getUserID();
	$db->connectDB();
	$query = "call restoreDefaultData(".$uid.",@a);";
	$result = $db->query($query);
	if( !$result ) {
		die("alert('Failed stored procedure call (restoreDefaultFunctor)');");
	}
	$db->closeDB();
}

restoreDefaultFunctor();
?>